<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03_js数据类型</title>
</head>
<body>
<script>
<!--    原始数据类型 number boolean null undefined-->
    var a =1;
    var b =6.6;
    console.log(a,typeof a);
    console.log(b,typeof b);

    var c = "你好";
    var d = '你们好';
    console.log(c,  typeof c);
    console.log(d,typeof d);

    var e = true;
    console.log(e, typeof e)

    var g;
    console.log(g,typeof g)

    let obj = {
        //属性名：属性值，多对值使用都好隔开
        name:"张三",
        age:18,
        sex:"男"
    };
    console.log(obj,typeof obj);
    console.log(obj.age,obj.sex);

    obj.like = "吃火锅";
    console.log(obj.like);
    console.log(obj);
    // 访问对象不存在的属性 会得到undefined
    console.log(obj.play);

    //js数组
let arr = ["花花","曹操","缓缓",1,1.3,false];
console.log(arr,typeof arr);
console.log(arr[0]);
console.log(arr[5]);
console.log(arr[99]);

</script>

</body>
</html>